package song.yun;

import com.company.Pet;
import javax.imageio.plugins.jpeg.JPEGImageReadParam;
import java.io.*;
public class Person implements Pet, Serializable{
    private int high = 5;
    private int age = 4;
    static {System.out.println("已经载入Person!");}
    public Person(){System.out.println("Person构造函数");}
    public Person(int h, int a){
//        this.high = h;
        this.age = a;
    }
    public Person(int a, double h){}
    public Person(double h, int a) {}
    public void print(){
        System.out.println(this.high + " " + this.age);
    }
    public void pr(){};
    public static final void fun(){System.out.println("我是person类!");}
    public void fun1(int a) throws Exception{
        if (a > 0) throw new Exception();
    }

    @Override
    public void pao(double rate) {
        System.out.println("rate");
    }

    @Override
    public void tiao(double tall) {
        System.out.println("tall");
    }
}
